<script>
htmls = new Array();
$(function(){
    $('.fv').mouseover(function(event){
        osn = $(this).html();
        event.stopPropagation();
        var offset = $(event.target).offset();
        var of = $('#order_fv');
        of.css({ top: offset.top/2 , left: offset.left + $(event.target).width() +'px' });
        of.show();

        of.html('正在查询订单详情');

        if (htmls[osn] == undefined)
        {
            $.post('?app=<?php echo APP; ?>&mod=getdesc',{osn:osn},function(data){
                htmls[osn] = data.message;
                of.html(htmls[osn]);
            },'json');
        } else {
            of.html(htmls[osn]);
        }
    }).mouseout(function(){
        $('#order_fv').hide();
    });
});
</script>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th1">订单编号</th>
            <th class="th1">下单时间</th>
            <th class="th1">收货人</th>
            <th class="th0">总金额</th>
            <th class="th0">应付金额</th>
            <th class="th1">状态</th>
       </tr>
       <?php foreach($this->orders as $order): ?> 
       <tr>
            <td class="fv"><?php echo $order['order_sn']; ?></td>
            <td><?php echo date('y-m-d H:i',$order['created_time']); ?></td>
            <td><?php echo $order['username']; ?>&nbsp;[TEL:&nbsp;<?php echo $order['tel']; ?>]<br /><?php echo $order['address']; ?></td>
            <td>￥<?php echo $order['price']; ?></td>
            <td>￥<?php echo $order['pprice']; ?></td>
            <td><?php echo orderState($order['audit_state']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>
<div id='order_fv' style="display:none;width:auto;height:auto;background:skyblue;padding:5px;font-weight:bold;font-family:'黑体';font-size:14px;position:fixed;">NULL</div>